package com.dannypatterson.as3p2p.events {
	
	import com.dannypatterson.as3p2p.Peer;
	
	import flash.events.Event;
	
	/**
	 * @author Danny Patterson
	 */
	public class OutgoingConnectionEvent extends Event {
		
		static public const OUTGOING_CONNECTION_ACCEPTED:String = "outgoingConnectionAccepted"; 
		
		public var peer:Peer;
		public var channel:String;
		
		public function OutgoingConnectionEvent(type:String, peer:Peer, channel:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this.peer = peer;
			this.channel = channel;
		}
		
		override public function clone():Event {
			return new OutgoingConnectionEvent(type, peer, channel, bubbles, cancelable);
		}

	}
	
}